import {
  airAlarmAlarmMonitorData,
  airMonitorHistoryMonitorDataTable,
  airMonitorHistoryMonitorDataTableColumn,
  airMonitorPageList,
  airPointDelete,
  airPointPageList,
  airPointSaveOrUpdate
} from '@/api/airApi'
import {
  noiseAlarmAlarmMonitorData,
  noiseMonitorHistoryMonitorDataTable,
  noiseMonitorHistoryMonitorDataTableColumn,
  noiseMonitorPageList,
  noisePointDelete,
  noisePointPageList,
  noisePointSaveOrUpdate
} from '@/api/noiseApi'
import {
  waterAlarmAlarmMonitorData,
  waterMonitorHistoryMonitorDataTable,
  waterMonitorHistoryMonitorDataTableColumn,
  waterMonitorPageList,
  waterPointDelete,
  waterPointPageList,
  waterPointSaveOrUpdate
} from '@/api/waterApi'
import {
  smokeAlarmAlarmMonitorData,
  smokeMonitorHistoryMonitorDataTable,
  smokeMonitorHistoryMonitorDataTableColumn,
  smokeMonitorPageList,
  smokePointDelete,
  smokePointPageList,
  smokePointSaveOrUpdate
} from '@/api/smokeApi'
import {
  dustAlarmAlarmMonitorData,
  dustMonitorHistoryMonitorDataTable,
  dustMonitorHistoryMonitorDataTableColumn,
  dustMonitorPageList,
  dustPointDelete,
  dustPointPageList,
  dustPointSaveOrUpdate
} from '@/api/dustApi'

const serviceMap = {
  airtype: {
    monitorPageList: airMonitorPageList,
    list: airPointPageList,
    remove: airPointDelete,
    saveOrUpdate: airPointSaveOrUpdate,
    monitorDataTable: airMonitorHistoryMonitorDataTable,
    monitorDataTableColumn: airMonitorHistoryMonitorDataTableColumn,
    alarmAlarmMonitorData: airAlarmAlarmMonitorData
  },
  noisetype: {
    monitorPageList: noiseMonitorPageList,
    list: noisePointPageList,
    remove: noisePointDelete,
    saveOrUpdate: noisePointSaveOrUpdate,
    monitorDataTable: noiseMonitorHistoryMonitorDataTable,
    monitorDataTableColumn: noiseMonitorHistoryMonitorDataTableColumn,
    alarmAlarmMonitorData: noiseAlarmAlarmMonitorData
  },
  watertype: {
    monitorPageList: waterMonitorPageList,
    list: waterPointPageList,
    remove: waterPointDelete,
    saveOrUpdate: waterPointSaveOrUpdate,
    monitorDataTable: waterMonitorHistoryMonitorDataTable,
    monitorDataTableColumn: waterMonitorHistoryMonitorDataTableColumn,
    alarmAlarmMonitorData: waterAlarmAlarmMonitorData
  },
  smoketype: {
    monitorPageList: smokeMonitorPageList,
    list: smokePointPageList,
    remove: smokePointDelete,
    saveOrUpdate: smokePointSaveOrUpdate,
    monitorDataTable: smokeMonitorHistoryMonitorDataTable,
    monitorDataTableColumn: smokeMonitorHistoryMonitorDataTableColumn,
    alarmAlarmMonitorData: smokeAlarmAlarmMonitorData
  },
  dusttype: {
    monitorPageList: dustMonitorPageList,
    list: dustPointPageList,
    remove: dustPointDelete,
    saveOrUpdate: dustPointSaveOrUpdate,
    monitorDataTable: dustMonitorHistoryMonitorDataTable,
    monitorDataTableColumn: dustMonitorHistoryMonitorDataTableColumn,
    alarmAlarmMonitorData: dustAlarmAlarmMonitorData
  }
}

export default serviceMap
